package com.xinlu.util.tool;

public class CalcZhiheUtils {
	
	public static String calcZhihe(){
		
		int[] nums = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
		
		int[] total = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		
		for(int i = 0; i < nums.length; i++){
			
			for(int j = 0; j < nums.length; j++){
				
				for(int k = 0; k < nums.length; k++){
					
					total[i+j+k]++;
				}
			}
		}
		
		String result = "";
		for (int i = 0; i < total.length; i++) {
			
			result += total[i] + ",";
		}
		
		return result.substring(0, result.length() - 1);
	}
	
	public static void main(String[] args) {
		
		System.out.println(calcZhihe());
	}
	
}
